Index
Table of Content
First step config teensy 4.1 with MicroPython Set VSCode with pymaker extension
Build teensy loader cli#
build cli to upload micropython to teensy board
- Download source from git
- Install
sudo apt-get install libusb-dev - Run
make
load MicroPython firmware#
teensy_loader_cli --mcu=imxrt1062 -v -w TEENSY41-<date_version_tag>.hex
#
teensy_loader_cli --mcu=imxrt1062 -v -w ~/Downloads/TEENSY41-20231005-v1.21.0.hex
usage#
sudo apt install picocom
picocom -b 115200 /dev/ttyACM0
#
# press enter
# get python prompt
>>>
# exit
ctrl-a ctrl-q
VSCode#
- install Pymaker
- Create new project :
PyMakr: Create new project
Blink Example#
import machine
from machine import Pin
led = Pin('LED', Pin.OUT)
led.on()
led.off()
import time
for i in range(10):
time.sleep_ms(250)
led.on()
time.sleep_ms(250)
led.off()